home *** CD-ROM | disk | FTP | other *** search
/ Carousel / CAROUSEL.cdr / mactosh / util / simulare.sit / Simula 4.07 Reference / card_54537.txt < prev    next >
Text File  |  1989-05-02  |  1KB  |  63 lines

  1. -- card: 54537 from stack: in.07 Reference
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 13647
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: A004
  11. -- rect: left=17 top=288 right=310 bottom=101
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Expressions
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   go to card id 53786
  23. end mouseUp
  24.  
  25.  
  26.  
  27.  
  28. -- part 2 (button)
  29. -- low flags: 00
  30. -- high flags: A004
  31. -- rect: left=107 top=288 right=310 bottom=191
  32. -- title width / last selected line: 0
  33. -- icon id / first selected line: 0 / 0
  34. -- text alignment: 1
  35. -- font id: 0
  36. -- text size: 12
  37. -- style flags: 0
  38. -- line height: 16
  39. -- part name: More
  40. ----- HyperTalk script -----
  41. on mouseUp
  42.   go to card id 30765
  43. end mouseUp
  44.  
  45.  
  46.  
  47.  
  48. -- part contents for background part 2
  49. ----- text -----
  50. Arithmetic expression
  51.  
  52. -- part contents for background part 1
  53. ----- text -----
  54.  
  55. No surprises here; the customary operators are present.
  56.  
  57.       **  is "raised to"
  58.       //   is integer division
  59.  
  60. Mixed-mode arithmetic is allowed; if necessary conversion to higher precision is performed.
  61.  
  62. Note that expressions of the type "short integer"  are computed in "integer" precision. Conversion to the base type is only performed when the values are stored.
  63.